<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
</head>

<body>
    <div id="box">{{content}}</div>
    </div>
    <script>
        //创建一个Vue实例
        var app = new Vue({
            el: '#box', //接管对象是box
            data: {
                // 定义一些数据
                content: 'hello world1'
            }
        })

        // 两秒之后改变值
        setTimeout(function() {
            app.$data.content = 'bye hello'
        }, 2000)
    </script>
</body>

</html>